package cn.edu.hunau.basic.day02;

import org.junit.Test;

/**
 * @author hb
 * @date 2025-07-29 11:31:39
 */
public class MoveTest {

    public void testInt(){
        byte b1=3;
        byte b2=1;
        byte b3=(byte)(b1+b2);
        System.out.println(b3);

        byte b4=3;
        b4+=2; //b4=b4+2
        b4/=2; //b4=b4/2
        b4*=2; //b4=b4*2

    }

    @Test
    public void test01(){
       int c=-1;
       System.out.println(c>>1);//-1
       System.out.println(c>>>1);//2147483647

        int a=1;
        System.out.println(a<<31);//-2147483648
        System.out.println(a<<33);//2


    }
}
